import { createApp } from 'vue'
import '@/styles/index.scss'
import App from '@/App.vue'

// 引入UI组件
import 'element-plus/dist/index.css'

//引入路由
import router from './router/permit.ts'
//引入仓库
import pinia from './store'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import ElementPlus from 'element-plus'

const app = createApp(App)
app.use(ElementPlus)

app.use(router)
//安装仓库
app.use(pinia)
// 使用字体图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
